const connect = require("./connect")

const userSchema = new connect.Schema({
  uId: {type:String},
  username: {type:String},
  password: {type:String},
  tel: {type:String},
  nickName: {type:String},
  age: {type:Number},
  sex: {type:String},
  regTime: {type:Number},
  power: {type: Number},    // 0:普通用户，1:vip用户，2:管理员
  avatar: {type:String}
})

module.exports = connect.model( "user", userSchema );
